<div class="find-app" id="app">
    <!-- public-head -->
    <!--<div class="header-mobile">-->
        <!--<h1 class="nav-title">个人中心</h1>-->
    <!--</div>-->
    <div class="main-wrapper">
        <div class="my-wrapper">
            <div class="section-floor">
                <div class="user-panel">
                    <div class="info-bar">
                        <img class="avatar" v-lazy="userData.avatar">
                        <span class="name">{{userData.nickname}}</span>
                        <img   v-if="userData.is_vip == 1" class="crown" src="__CDN__/assets/img/Shape@2x.png" alt="">
                    </div>

                </div>
            </div>
            <div class="section-floor">
                <div class="navigator-list">
                    <a class="navigator-item" href="{:url('user/withdrawals')}">
                        <div>
                            <img class="icon" src="__CDN__/assets/img/Wallets@2x.png" alt="">
                            <span>我的钱包</span>
                        </div>
                        <img class="grey-arrow" src="__CDN__/assets/img/arrow@2x.png" alt="">
                    </a>
                    <a class="navigator-item" href="{:url('user/mypublish')}">
                        <div>
                            <img class="icon" src="__CDN__/assets/img/Bill@2x.png" alt="">
                            <span>我发布的</span>
                        </div>
                        <img class="grey-arrow" src="__CDN__/assets/img/arrow@2x.png" alt="">
                    </a>
                    <a class="navigator-item" href="{:url('user/participate')}">
                        <div>
                            <img class="icon" src="__CDN__/assets/img/Floder@2x.png" alt="">
                            <span>我参与的</span>
                        </div>
                        <img class="grey-arrow" src="__CDN__/assets/img/arrow@2x.png" alt="">
                    </a>
                    <a class="navigator-item" href="{:url('user/getaboutus')}">
                        <div>
                            <img class="icon" src="__CDN__/assets/img/question.png" alt="">
                            <span>关于我们</span>
                        </div>
                        <img class="grey-arrow" src="__CDN__/assets/img/arrow@2x.png" alt="">
                    </a>
                </div>
            </div>
        </div>
    </div>
    <!-- public-footer -->
    {include file="common/footer" /}
</div>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript" charset="utf-8"></script>
<script>
    wx.config(<?php echo $js->config(array('chooseWXPay'), false) ?>);
    let _index = new Vue({
        el: '#app',
        data: {
            userData:[],
        },

        created() {

        },
        mounted() {
            this.userajax()
        },
        methods: {

            userajax(){
                let self = this;
                axios({
                    method: "post",
                    url: "{:url('user/index')}",
                    data: {
                        RequestName:'ajax',
                    },
                    headers: {'X-Requested-With': 'XMLHttpRequest'}
                }).then(res => {
                    if (res.data.code == 1) {
                        self.userData=res.data.data
                    }else{
                        self.$messagebox(res.data.msg)
                    }
                })
            },
            loadMore() {

            }
        }
    })
</script>